package com.zhaogang.transactionManagerDemo.service;

import java.math.BigDecimal;

import com.zhaogang.transactionManagerDemo.entity.SystemLog;

public interface AccountTransactionService {
	
	int updateBalanceByAccountNo(String accountNo, BigDecimal amount);
	
	void transferSimple(String fromAccountNo, String toAccountNo, BigDecimal amount);
	
	void transferSimpleNoTrans(String fromAccountNo, String toAccountNo, BigDecimal amount);

	void transfer(String fromAccountNo, String toAccountNo, BigDecimal amount);

	SystemLog addLog(String topic, String tableName, Object old, Object now);

	void transferException(String fromAccountNo, String toAccountNo, BigDecimal amount) throws Exception;
	
}
